<template>
  <div>
    <div class="header">
      <div class="header-spesigreg"></div>
      <div class="header-nav">
        <div class="clearfix">
          <img src="../assets/img/logo.png" alt="" />
          <div class="list">
            <div @click="active = 1" :class="{ active: active == 1 }">
              <span>首页</span>
              <span>HOME</span>
            </div>
            <div @click="active = 2" :class="{ active: active == 2 }">
              <span>畅玩乐园</span>
              <span>PARADISE</span>
            </div>
            <div @click="active = 3" :class="{ active: active == 3 }">
              <span>明星IP</span>
              <span>KIDS IP</span>
            </div>
            <div @click="active = 4" :class="{ active: active == 4 }">
              <span>合作加盟</span>
              <span>JOIN US</span>
            </div>
            <div @click="active = 5" :class="{ active: active == 5 }">
              <span>关于我们</span>
              <span>ABOUT US</span>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      active: 1,
    };
  },
};
</script>

<style lang="scss" scoped>
::selection {
  background: #2f8cfc;
  color: #ffffff;
}

.header {
  z-index: 10;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
}

.header-spesigreg {
  height: 40px;
  background-color: #0e6bc1;
}
.header-nav {
  padding-right: 180px;
  background-color: rgba(255, 255, 255, 0.9);
  > .clearfix {
    width: 1170px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    > img {
      user-select: none;
      cursor: pointer;
    }
    > .list {
      display: flex;
      height: 110px;
      align-items: center;
      > div {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0 35px;
        color: #333333;
        transition: all 0.35s;
        cursor: pointer;
        &.active {
          color: #0e6bc1;
        }
        &:hover {
          color: #0e6bc1;
        }
        &:not(:last-child) {
          border-right: 1px solid #ccc;
        }
        > span {
          &:first-child {
            font-size: 16px;
            font-weight: bold;
            margin-bottom: 10px;
          }
          &:last-child {
            font-size: 12px;
          }
        }
      }
    }
  }
}
</style>
